HDFS-16310. RBF: Add client port to CallerContext for Router#3635
HDFS-16310. RBF: Add client port to CallerContext for Router#3635tasanuma merged 1 commit intoapache:trunkfrom
Conversation
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/CallerContext.java
Outdated
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
There's a failure with TestRouterDistCpProcedure but I don't see how it can be related. |
Thank @goiri for your review. This failed unit test is unrelated to the change. It failed because timeout and work fine locally. |
|
Hi @tasanuma @jojochuang @ferhui @ayushtkn , could you please take a look at this. Thank you very much. |
|
@tomscut With the latest commit, it seems Router adds a client port even if |
| CallerContext.setCurrent( | ||
| new CallerContext.Builder(origContext, contextFieldSeparator) | ||
| .appendIfAbsent(CLIENT_IP_STR, Server.getRemoteAddress()) | ||
| .appendIfAbsent(CLIENT_PORT_STR, |
There was a problem hiding this comment.
Just a note, we allow the line length up to 100 after HADOOP-17813.
There was a problem hiding this comment.
Just a note, we allow the line length up to 100 after HADOOP-17813.
Thank you for reminding me. This is good.
Thanks @tasanuma for your careful consideration and comments. This problem does exist at present. But |
|
@tomscut Thank you for your explanation. It makes sense to me. Now I'm +1. |
|
Thanks @tasanuma for your comment and the merge. |
Cherry-picked from 5b05068 by Owen O'Malley
JIRA: HDFS-16310.
We mentioned in #3538 that adding the client port to the CallerContext of the Router.